<?php if (Yii::app()->user->hasFlash('pwdrecflash')): ?>
    <div class="flash-success">
        <?php echo Yii::app()->user->getFlash('pwdrecflash'); ?>
    </div>
<?php else: ?>
    <div class="form">
        <?php
        $form = $this->beginWidget('CActiveForm', array(
            'id' => 'pwdrcv-form',
            'enableClientValidation' => false,
            'clientOptions' => array(
                'validateOnSubmit' => true,
            ),
        ));
        ?>

        <div class="row">
            <?php echo $form->labelEx($model, 'username'); ?>
    <?php echo $form->textField($model, 'username'); ?>
        <?php echo $form->error($model, 'username'); ?>
        </div>

            <?php if (CCaptcha::checkRequirements()): ?>
            <div class="row">
                    <?php echo $form->labelEx($model, 'verifyCode'); ?>
                <div>
        <?php $this->widget('CCaptcha'); ?>
                <?php echo $form->textField($model, 'verifyCode'); ?>
                </div>
                <div class="hint"><?php echo CrugeTranslator::t("Ingrese los caracteres que se muestra."); ?></div>
            <?php echo $form->error($model, 'verifyCode'); ?>
            </div>
            <?php endif; ?>

        <div class="row buttons">
            <?php
            $this->widget('booster.widgets.TbButton', array(
                'buttonType' => 'inverse',
                'label' => CrugeTranslator::t('logon', "Recuperar Contraseña"),
                'htmlOptions' => array('type' => 'submit')
            ));
            ?>
        </div>

    <?php $this->endWidget(); ?>
    </div>
<?php endif; ?>